home *** CD-ROM | disk | FTP | other *** search
- desc = getEffectDescriptionP(ENET_EFFECT_PS_BASESHOT_EXPLOSION)
-
- desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
- desc.EffectClassType = ENECT_PARTICLESYSTEM
-
- desc.ScriptSet = ENSCRIPTSET_UNKNOWN
- desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
- desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
- desc.isAnimateTexture = false
- desc.RenderType = ENRENDERTYPE_GEOMETRY
-
- Emitter = desc.PS.PSDescription
- Emitter.ParticleTypesNumber = 2
- Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
- Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
- Emitter.EmitterLifeTime = 1
-
- PT = Emitter.ParticleTypesParams[1]
- PT.IsEmitterLocked = false
- PT.DrawOrder = 2
- PT.Material = ENMAT_PARTICLE_LIGHT
-
-
- PT.TextureName = "dot_alien_effect_explosion.dds"
-
-
-
- PT.ParticlesPerSecond = 15.0;
- PT.InitialNumberOfParticles = 10.0;
- PT.BaseLifeTime = 0.8;
- PT.BaseLifeTimeVariance = 0.0;
- PT.BaseSpeed = 0.0;
- PT.BaseSpeedVariance = 0.0;
- PT.BaseAngle = 1.65;
- PT.BaseAngleVariance = 5.0;
- PT.BaseAngleSpeed = 0.0;
- PT.BaseAngleSpeedVariance = 0.0;
- PT.BaseAngleSpeedDirection = 0;
- PT.BaseDirection = D3DXVECTOR3:new(0.0,1.0,0.0);
- PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
- PT.BasePosition = D3DXVECTOR3:new(0,0,0);
- PT.BasePositionVariance = D3DXVECTOR3:new(5.0,5.0,5.0);
- PT.BaseSize = 2.0;
- PT.BaseSizeVariance = 2.0;
-
- -- color over time
- PT.ColorOverTimeR[1].TimePercent = 0.0;
- PT.ColorOverTimeR[1].Value = 0.5;
- PT.ColorOverTimeG[1].TimePercent = 0.0;
- PT.ColorOverTimeG[1].Value = 0.5;
- PT.ColorOverTimeB[1].TimePercent = 0.0;
- PT.ColorOverTimeB[1].Value = 0.5;
-
- PT.ColorOverTimeR[2].TimePercent = 1.0;
- PT.ColorOverTimeR[2].Value = 1.0;
- PT.ColorOverTimeG[2].TimePercent = 1.0;
- PT.ColorOverTimeG[2].Value = 1.0;
- PT.ColorOverTimeB[2].TimePercent = 1.0;
- PT.ColorOverTimeB[2].Value = 1.0;
-
- -- transparency over time
- PT.TransparencyOverTime[1].TimePercent = 0.0;
- PT.TransparencyOverTime[1].Value = 1.0;
-
- PT.TransparencyOverTime[2].TimePercent = 0.02;
- PT.TransparencyOverTime[2].Value = 1.0;
-
- PT.TransparencyOverTime[3].TimePercent = 0.4;
- PT.TransparencyOverTime[3].Value = 1.0;
-
- PT.TransparencyOverTime[4].TimePercent = 1.0;
- PT.TransparencyOverTime[4].Value = 0.0;
-
-
- -- size over time
- PT.SizeOverTime[1].TimePercent = 0.0;
- PT.SizeOverTime[1].Value = 0.0;
-
- PT.SizeOverTime[3].TimePercent = 1.0;
- PT.SizeOverTime[3].Value = 10.0;
-
-
- -- Speed over time
- PT.SpeedOverTime[1].TimePercent = 0.0;
- PT.SpeedOverTime[1].Value = 10.0;
-
- PT.SpeedOverTime[2].TimePercent = 0.5;
- PT.SpeedOverTime[2].Value = 0.0;
-
- PT.SpeedOverTime[3].TimePercent = 1.0;
- PT.SpeedOverTime[3].Value = 0.0;
-
- -- Tangent Speed over time
- PT.TangentSpeedOverTime[1].TimePercent = 0.0;
- PT.TangentSpeedOverTime[1].Value = 0.0;
-
- PT.TangentSpeedOverTime[2].TimePercent = 1.0;
- PT.TangentSpeedOverTime[2].Value = 0.0;
-
-
- -- GravityAcceleration over time
- PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
- PT.GravityAccelerationOverTime[1].Value = 0.0;
-
- PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
- PT.GravityAccelerationOverTime[2].Value = 0.0;
-
- PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
- PT.GravityAccelerationOverTime[3].Value = 0.0;
-
- -- AngleSpeed over time
- PT.AngleSpeedOverTime[1].TimePercent = 0.0;
- PT.AngleSpeedOverTime[1].Value = 0.0;
-
- PT.AngleSpeedOverTime[2].TimePercent = 1.0;
- PT.AngleSpeedOverTime[2].Value = 0.0;
-
-
-
-
-
-
-
-
-
-
-
-
-
- PT = Emitter.ParticleTypesParams[2]
- PT.IsEmitterLocked = false
- PT.DrawOrder = 1
- PT.Material = ENMAT_SIMPLEPARTICLE
-
-
- --PT.TextureName = "dot_alien_effect_explosion.dds"
- PT.TextureName = "environment_effect_cloud4.dds"
-
-
-
- PT.ParticlesPerSecond = 15.0;
- PT.InitialNumberOfParticles = 5.0;
- PT.BaseLifeTime = 1.8;
- PT.BaseLifeTimeVariance = 0.0;
- PT.BaseSpeed = 0.0;
- PT.BaseSpeedVariance = 0.0;
- PT.BaseAngle = 1.65;
- PT.BaseAngleVariance = 5.0;
- PT.BaseAngleSpeed = 1.0;
- PT.BaseAngleSpeedVariance = 2.0;
- PT.BaseAngleSpeedDirection = 0;
- PT.BaseDirection = D3DXVECTOR3:new(0.0,1.0,0.0);
- PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
- PT.BasePosition = D3DXVECTOR3:new(0,0,0);
- PT.BasePositionVariance = D3DXVECTOR3:new(10.0,0.0,10.0);
- PT.BaseSize = 4.0;
- PT.BaseSizeVariance = 2.0;
-
- -- color over time
- PT.ColorOverTimeR[1].TimePercent = 0.0;
- PT.ColorOverTimeR[1].Value = 0.5;
- PT.ColorOverTimeG[1].TimePercent = 0.0;
- PT.ColorOverTimeG[1].Value = 0.5;
- PT.ColorOverTimeB[1].TimePercent = 0.0;
- PT.ColorOverTimeB[1].Value = 0.5;
-
- PT.ColorOverTimeR[2].TimePercent = 1.0;
- PT.ColorOverTimeR[2].Value = 0.5;
- PT.ColorOverTimeG[2].TimePercent = 1.0;
- PT.ColorOverTimeG[2].Value = 0.5;
- PT.ColorOverTimeB[2].TimePercent = 1.0;
- PT.ColorOverTimeB[2].Value = 0.5;
-
- -- transparency over time
- PT.TransparencyOverTime[1].TimePercent = 0.0;
- PT.TransparencyOverTime[1].Value = 0.0;
-
- PT.TransparencyOverTime[2].TimePercent = 0.3;
- PT.TransparencyOverTime[2].Value = 0.3;
-
- PT.TransparencyOverTime[3].TimePercent = 0.7;
- PT.TransparencyOverTime[3].Value = 0.3;
-
- PT.TransparencyOverTime[4].TimePercent = 1.0;
- PT.TransparencyOverTime[4].Value = 0.0;
-
-
- -- size over time
- PT.SizeOverTime[1].TimePercent = 0.0;
- PT.SizeOverTime[1].Value = 1.0;
-
- PT.SizeOverTime[3].TimePercent = 1.0;
- PT.SizeOverTime[3].Value = 2.5;
-
-
- -- Speed over time
- PT.SpeedOverTime[1].TimePercent = 0.0;
- PT.SpeedOverTime[1].Value = 10.0;
-
- PT.SpeedOverTime[2].TimePercent = 0.5;
- PT.SpeedOverTime[2].Value = 0.0;
-
- PT.SpeedOverTime[3].TimePercent = 1.0;
- PT.SpeedOverTime[3].Value = 0.0;
-
- -- Tangent Speed over time
- PT.TangentSpeedOverTime[1].TimePercent = 0.0;
- PT.TangentSpeedOverTime[1].Value = 0.0;
-
- PT.TangentSpeedOverTime[2].TimePercent = 1.0;
- PT.TangentSpeedOverTime[2].Value = 0.0;
-
-
- -- GravityAcceleration over time
- PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
- PT.GravityAccelerationOverTime[1].Value = 0.0;
-
- PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
- PT.GravityAccelerationOverTime[2].Value = 0.0;
-
- PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
- PT.GravityAccelerationOverTime[3].Value = 0.0;
-
- -- AngleSpeed over time
- PT.AngleSpeedOverTime[1].TimePercent = 0.0;
- PT.AngleSpeedOverTime[1].Value = 0.0;
-
- PT.AngleSpeedOverTime[2].TimePercent = 1.0;
- PT.AngleSpeedOverTime[2].Value = 0.0;
-
-
-
- --
- -- end particle system description
- --
-